import React from 'react'
import { Field } from 'redux-form'




const CommonField = ({ label, name, value, text, component, data }) => {
  return (
    <div>
      <label>{label}</label>
      <Field
        name={name}
        component={component}
        data={data}
        valueField={value}
        textField={text}/>
    </div>
  )
}

export default CommonField

